import java.lang.Math;

public class Vertrag
{
	private String kname;
	private String ksurname;
	private int bsumme;
	private double provsatz;
	private int prov;
	private int aw;
	private double aw1 = 1;
	private double aw2 = 0.52;
	private String tarif;
	private Mitarbeiter mitarbeiter;
	
	
	public Vertrag(String kname, String ksurname, int bsumme, double provsatz, int aw, String tarif, Mitarbeiter mitarbeiter)
	{
		this.kname = kname;
		this.ksurname = ksurname;
		this.bsumme = bsumme;
		this.provsatz = provsatz;
		if(aw == 1)
			this.prov = (bsumme*provsatz*aw1);
		else if (aw == 2)
			this.prov = (bsumme*provsatz*aw2);
		else
			System.out.println("Keine Provision gebucht");
		this.tarif = tarif;
		this.mitarbeiter = mitarbeiter;
	}
	
	public int getProv()
	{
		return prov;
	}
	
	public int getBsumme()
	{
		return bsumme;
	}
	
	public String getKname()
	{
		return kname;
	}
	
	public String getKsurname()
	{
		return ksurname;
	}
}
	
	
	